﻿@using Vcare.Properties

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>vCare Memberships</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/themes/base/css", "~/Content/css")

        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        @Scripts.Render("~/bundles/jqueryval")
        <script src="~/Scripts/jquery.maskedinput-1.3.1.min.js" type="text/javascript"></script>
        <script src="~/Content/chosen/chosen.jquery.min.js" type="text/javascript"></script>
        <link href="~/Content/chosen/chosen.css" rel="stylesheet" type="text/css" />

        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">

        <!-- Optional theme -->
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap-theme.min.css">

        <!-- Latest compiled and minified JavaScript -->
        <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>


        <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />

        <script type="text/javascript">
            $().ready(function () {
                $.ajaxSetup({ cache: false });
            });
        </script>

    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                <a href="@(Url.Action("Index", "Home"))">
                <img src="../../Images/plus.png" style="width: 120px; height: 60px" />
                </a>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                        @if (this.User.Identity.IsAuthenticated)
                        {
                            <li>@Html.ActionLink("Home", "Index", "Home")</li>
                            <li>@Html.ActionLink("View Member File", "Index", "Members")</li>
                            <li>@Html.ActionLink("Add Member", "Create", "Members")</li>
                            if (this.User.IsInRole(ApplicationRoles.Administrator) || this.User.IsInRole(ApplicationRoles.CCAdministrator))
                            {
                            <li>@Html.ActionLink("User Management", "Index", "UserInfo")</li>    
                            }
                            if (this.User.IsInRole(ApplicationRoles.Administrator))
                            {
                            <li>@Html.ActionLink("Call Centres", "Index", "CallCentres")</li>
                            <li>@Html.ActionLink("SMEs", "Index", "Companies")</li>
                            }
                            if (this.User.Identity.Name == "karl_commercial")
                            {
                            <li>@Html.ActionLink("Authority", "Index", "Authority")</li>                                
                            <li>@Html.ActionLink("Plus Card", "PurchaseCard", "Plus")</li>                            
                            }
                        }
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - vCare Plus Ltd</p>
                </div>
                <div class="float-right">
                    <ul id="social">
                        <li><a href="http://facebook.com" class="facebook">Facebook</a></li>
                        <li><a href="http://twitter.com" class="twitter">Twitter</a></li>
                    </ul>
                </div>
            </div>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)
    </body>
</html>
